# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-asysocks
_pyname="asysocks"
pkgver=0.2.13
pkgrel=0
pkgdesc="Socks5 / Socks4 client and server library"
url="https://github.com/skelsec/asysocks"
arch="noarch"
license="MIT"
depends="
	py3-asn1crypto
	py3-cryptography
	py3-h11
	"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/asysocks/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
e87ef24e0a055a30967a36bd302787400ebac35d77eeb2ac1a3d07df647834077aa8e47060b20c4c4a2393884b25ad79a209eb22c79b9b72ce4d27c72cbef501  py3-asysocks-0.2.13.tar.gz
"
